package entityJDBC;

public class PositionComment {
	private int idPositionComment;
	private User user;
	private String comment;
	private Position position;
	
	public PositionComment(String comment,Position position, User user) {
		super();
		this.user = user;
		this.comment = comment;
		this.position = position;
	}
	

	public PositionComment(int idpositionComment,String comment,Position position, User user) {
		super();
		this.idPositionComment=idpositionComment;
		this.user = user;
		this.comment = comment;
		this.position = position;
	}
	
	public int getIdPositionComment() {
		return idPositionComment;
	}
	public void setIdPositionComment(int idPositionComment) {
		this.idPositionComment = idPositionComment;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user=user;
	}
	public String getComment() {
		return comment;
	}
	public void setComment(String comment) {
		this.comment = comment;
	}
	public Position getPosition() {
		return position;
	}
	public void setPosition(Position position) {
		this.position = position;
	}

	@Override
	public String toString(){
		return "id:"+this.idPositionComment+" ,position:"+this.position.getName()+" ,comment:"+this.comment+" ,user:"+this.user.toString();
		
	}
}
